﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T02
{
    class Program
    {
        static void Main(string[] args)
        {
            book b = new book();
            b.bookname = "pingfanzhilu";
            b.page = 23;
            b.price = 12.3;
            Console.WriteLine("{0}共{1}页，价格{2}元", b.bookname, b.page, b.price);
            book b1 = b;//指针传替
            b1.price = 100;
            Console.WriteLine("{0}共{1}页，价格{2}元", b1.bookname, b1.page, b1.price);

            Console.ReadKey();
        }
    }
    class book//book类，用来描述系统数据库实体类
    {
        public String bookname;
        public int page;
        public double price;

    }

}